<template>
  <div>
    <el-menu
      :default-openeds="['1', '3']"
      router
      :collapse="collapse"
      :collapse-transition="false"
    >
      <navbarltem :menus="menus" :collapse="collapse"></navbarltem>
    </el-menu>
  </div>
</template>

<script>
import Navbarltem from "./Navbarltem.vue";

export default {
  components: { Navbarltem },

  props: {
    menus: {
      typr: Array,
      require: true,
    },
    collapse: {
      type: Boolean,
      default: false,
    },
  },
};
</script>

<style scoped>
.el-menu {
  height: 100%;
  border-right: none;
}
</style>